import Vue from 'vue'
import Vuex from 'vuex'
import switchPage from './modules/switchPage'
import key from './modules/key'
import getters from './getters'
import homelist from './modules/home'
import commodityDetail from './modules/commodityDetail'
import cache from './modules/cache'
import commitOrder from './modules/commitOrder'
import addressList from './modules/addressList'
import editAddress from './modules/editAddress'
import toast from './modules/isToast'
Vue.use(Vuex);
const store=new Vuex.Store({
    modules:{
        switchPage,
        key,
        homelist,
        commodityDetail,
        commitOrder,
        cache,
        addressList,
        editAddress,
        toast
    },
    getters
})
export default store